package com.zhongyouyun.admin.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zhongyouyun.admin.model.UserModel;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhongyouyun.admin.pojo.UserDetailPojo;
import com.zhongyouyun.admin.pojo.UserPojo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: shenyi
 * @Date: 2021-09-23
 * @Description: 用户表服务类
 */

public interface UserService extends IService<UserModel> {

    IPage<UserModel> selectPage(Page<UserModel> userPage, QueryWrapper<UserModel> queryWrapper);

    List<UserModel> selectList(QueryWrapper<UserModel> queryWrapper);

    List<String> findPermissions(UserModel userModel);

    Boolean saveUser(UserModel userModel,String type);

    IPage<UserPojo> selectPojoPage(Page page, QueryWrapper queryWrapper);

    UserDetailPojo getDetails(@Param(value = "id") Long id);
}
